package com.tanhua.app.controller;

import com.tanhua.app.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class CommentController {

    @Autowired
    private CommentService commentService;

    @GetMapping(value = "/comments",name="评论列表回显")
    public ResponseEntity findInfo(Integer page,Integer pagesize,String movementId) throws IOException {
        return commentService.findInfo(page,pagesize,movementId);
    }






    
}
